/*
 * @Author: zf
 * @Date: 2022-06-14 17:37:14
 * @Description: 空命令
 */

import BaseCommand from "@/core/Frame/BaseClass/BaseCommand";

class EmptyCommand extends BaseCommand {
  viewer: any;
  globeControl: any;
  globe: any;
  constructor(params: any) {
    super();
    this.viewer = params.viewer;
    this.globeControl = this.viewer.getGlobeControl();
    this.globe = this.globeControl.getGlobe();
  }

  execute(option: any) {
    // alert('空命令')
    console.log(this);
  }

  release() {
    this.viewer = null;
    this.globeControl = null;
    this.globe = null;
  }

  isEnable() {
    return true;
  }
}

export default EmptyCommand;
